Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure test runner does not import itself #1795

Merged
merged 2 commits into from
Oct 29, 2021
Merged

Conversation

JGamache-autodesk
Copy link
Collaborator

By giving it a different name from the module under test.

By giving it a different name from the module under test.
@@ -170,7 +170,7 @@ finally:
)
endif()

set(SCRIPT ${CMAKE_BINARY_DIR}/test/Temporary/scripts/${test_name}.py)
set(SCRIPT ${CMAKE_BINARY_DIR}/test/Temporary/scripts/runner_${test_name}.py)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@boudrey Should we also make this fix on line 149?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would be a good idea to keep it similar.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JGamache-autodesk Can you please fix line 149 as well. Thanks.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will have no effect because there is no module import in that branch. I can do it for the sake of keeping these two paths similar.

@seando-adsk seando-adsk requested a review from boudrey October 29, 2021 13:35
@seando-adsk seando-adsk added the unit test Related to unit tests (both python or c++) label Oct 29, 2021
@JGamache-autodesk JGamache-autodesk added the ready-for-merge Development process is finished, PR is ready for merge label Oct 29, 2021
@seando-adsk seando-adsk merged commit ae24139 into dev Oct 29, 2021
@kxl-adsk kxl-adsk deleted the t_gamaj/fix_unit_tests branch November 18, 2021 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge Development process is finished, PR is ready for merge unit test Related to unit tests (both python or c++)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants